/**
 * @file
 * @auth jinguangguo
 * @date 2016/12/23
 */

import ajax from '../../../../grsc-base/util/ajax';

export default {
    /***
     * 认证  //TODO
     * **/
    realNameAuth(param = {}) {
        return ajax.post('/exchangeApi/security/realNameAuth', {
            data: param
        });
    },

    /***
     * 判断身份证是否被注册过
     * **/
    checkId(param = {}) {
        return ajax.get('/exchangeApi/certification/overseas/check-id', {
            data: param
        });
    },

    /**
     * 基本信息认证
     */

    basicInfoAuthentication(param = {},header){
        return ajax.post('/exchangeApi/certification/overseas/basic-info-authentication',{
            data:param,
            header:header
        });
    },


    /**
     * 用户身份认证
     * */
    identityAuthentication(param = {}){
        return ajax.post('/exchangeApi/certification/overseas/ov-identity-authentication',{
            data:param
        });
    },


    /**
     *用户居住认证
     * */
    residenceAuthentication(param = {}){
        return ajax.post('/exchangeApi/certification/overseas/residence-authentication',{
            data:param
        })
    },


    /**
     * 获取用户认证信息
     * */
    getAuthenticationInfo(param = {},header){
        return ajax.get('/exchangeApi/certification/overseas/authentication-info',{
            data:param,
            header:header
        })
    },


    /**
     * 图片上传接口
     */
    photoUpload(param = {}){
        return ajax.post('/exchangeApi/certification/overseas/photo',{
            data:param
        })
    },






    /**
     * 新接口 ---level0 level1 level2
     *
     *
     *  // 用户level0升级level1认证信息提交
     /level1-authentication
     // 用户level1升级level2认证信息提交
     /level2-authentication
     //用户认证查询状态接口
     /basic-authentication-info
     * */


    level1Auth(param = {},header){
        return ajax.post('/exchangeApi/certification/overseas/level1-authentication',{
            data:param,
            header:header
        })
    },

    level2Auth(param = {},header){
        return ajax.post('/exchangeApi/certification/overseas/level2-authentication',{
            data:param,
            header:header
        })
    },

    getBasicAuthInfo(param = {},header){
        return ajax.get('/exchangeApi/certification/overseas/basic-authentication-info',{
            data:param,
            header:header
        })
    }
};